package 考试;

import java.util.Scanner;

public class Peigen extends Pisa implements Printer{
    private int keshu;

    public int getKeshu() {
        return keshu;
    }

    public void setKeshu(int keshu) {
        this.keshu = keshu;
    }

    @Override
    public void peigen() {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入培根克数：");
        setKeshu(input.nextInt());
        System.out.println("请输入披萨大小：");
        setDaxiao(input.nextInt());
        System.out.println("披萨价格：");
        setJiage(input.nextInt());
        System.out.println("名称：海鲜披萨");
        System.out.println("价格："+getJiage()+"元");
        System.out.println("大小："+getDaxiao()+"g");
        System.out.println("培根克数："+getKeshu()+"g");
    }

    @Override
    public void haixian() {

    }
}
